package xuanzhen.manage.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import net.sf.json.JSONArray;
import xuanzhen.dating.pojo.DatingUser;
import xuanzhen.dating.pojo.SeeShare;
import xuanzhen.dating.pojo.SignList;
import xuanzhen.dating.service.DatingService;
import xuanzhen.dating.service.SeeShareService;
import xuanzhen.manage.pojo.Admins;
import xuanzhen.manage.service.AdminsService;
import xuanzhen.pro.pojo.Relay;
import xuanzhen.pro.service.RelayService;
import xuanzhen.reservation.pojo.RedPacket;
import xuanzhen.reservation.service.RedPacketService;

@Controller
@RequestMapping("/redPacket")
public class RedPacketController {
	@Resource
	private AdminsService adminsService;
	@Resource
	private RedPacketService redPacketService;
	/**
	 *dating用户 翻页
	 */
	@RequestMapping(value = "/showList", method = RequestMethod.GET)
	public Object search(Model model,HttpServletRequest request,HttpSession session,HttpServletResponse response)
			throws Exception {
		Map<String,Object> condition = new HashMap<String,Object>();
		List<RedPacket> redList = redPacketService.selectListByMapForShow(condition);
		model.addAttribute("redPacketList", redList);
		return "manage/redPacketList";
	}
}
